package com.ruoyi.farmer.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.stereotype.Repository;

import java.io.Serializable;

/**
 * 产品管理对象 spu
 *
 * @author 姚毫征
 * @date 2023-09-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Spu implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 产品表主键 */
    private Long id;

    /** 产品ID */
    @Excel(name = "产品ID")
    private String spuId;

    /** 种类ID */
    @Excel(name = "种类ID")
    private String speciesId;

    /** 品种ID */
    @Excel(name = "品种ID")
    private String varietyId;

    /** 产地ID */
    @Excel(name = "产地ID")
    private String cityId;
    @Excel(name = "产地名称")
    private String cityName;
    private String speciesName;
    private String proId;
    private String varietyName;
    /** 产品名称 */
    @Excel(name = "产品名称")
    private String spuName;

    /** 是否上架 0 下架 1 上架 */
    @Excel(name = "是否上架 0 下架 1 上架")
    private Long saleable;

    /** 是否删除(0-未删, 1-已删) */
    private Long isDeleted;

    @Excel(name = "创建时间")
    private String createTime;
    @Excel(name = "修改时间")
    private String updateTime;
}
